﻿using CheemsControl.Controls;
using CheemsControl.Demo.Views;
using CheemsControl.Demo.Views.Borders;
using CheemsControl.Demo.Views.Buttons;
using CheemsControl.Demo.Views.Grid;
using CheemsControl.Demo.Views.ProgressBar;
using CheemsControl.Demo.Views.RadioButton;
using CheemsControl.Demo.Views.UserControl;
using Prism.Ioc;
using System.Windows;

namespace CheemsControl.Demo
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterSingleton<MainWindow>();
            // Border
            containerRegistry.RegisterForNavigation<FileDragDropBorderWindow>();
            // 按钮
            containerRegistry.RegisterForNavigation<IconButtonWindow>();
            // Grid
            containerRegistry.RegisterForNavigation<RoundedCornerGridWindow>();
            // 单选按钮
            containerRegistry.RegisterForNavigation<MessageReminderRadioButtonWindow>();
            // 进度条
            containerRegistry.RegisterForNavigation<LightColorProgressBarWindow>();
            // 其它
            containerRegistry.RegisterForNavigation<ColorPickerWindow>();
            containerRegistry.RegisterForNavigation<LightPieChartWindow>();
            containerRegistry.RegisterForNavigation<MessageTimelineWindow>();
            containerRegistry.RegisterForNavigation<PictureAutoLoadingBoxWindow>();
            containerRegistry.RegisterForNavigation<VirtualModelOfProductionLineWindow>();
        }
    }
}
